package gulimall.constant;

/**
 * 购物车相关常量
 *
 * @author HLF
 * @date 2022/8/11 20:42
 */
public class CartConstant {


    /**
     * 临时用户的cookie
     */
    public static final String TEMP_USER_COOKIE_NAME = "user-key";

    /**
     * 临时用户cookie的有效期设置为一个月
     */
    public static final int TEMP_USER_COOKIE_TIMEOUT = 3600 * 24 * 30;

    /**
     * 购物车redis前缀
     */
    public static final String CACHE_PREFIX = "gulimall:cart:";
}
